<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <!-- <script src="./lib/system.js"></script> -->
  <script src="./lib/jquery-1.9.1.min.js"></script>
  <script src="../praise-button-babel.js"></script>
    
  <script>
    //SystemJS.import('../praise-button.js');
    //未完成内容：
    //1.SystemJS未能成功import
    //2.用CSS画手，知道怎么画，但因时间问题未完成
    (function($){
      $.fn.PraiseButton =  function (width) {
        var btn = new Thumb(this.get(0));
        btn.buttonWidth = width;
      }
    })(jQuery);

    function onload() {  
      $('#btnThumb').PraiseButton(80);
    }
  </script>
  <title>Document</title>
</head>
<body onload="onload()">
  <div id="btnThumb">
  </div>
</body>
</html>